﻿function sendData(url, get, post, callback) {
    $.ajax({
        async: true,
        type: "POST",
        dataType: "html",
        contentType: "application/x-www-form-urlencoded",
        url: url + "?" + get,
        data: post,
        beforeSend: function () { }, //changeState('cargando'),
        success: callback,
        timeout: 4000,
        error: function () { } //changeState('error')
    });
}